package com.xiangyang.controller;

import com.xiangyang.entity.dto.Result;
import com.xiangyang.service.impl.SchedulingImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Scheduling")
@CrossOrigin
public class SchedulingControll {
    @Autowired
    SchedulingImpl ui;
    @PostMapping("/changescheduling")
    public Result getEmployeeAndDepartment(){
        return Result.ok(ui.getEmployeeAndDepartment());
    }
}
